<?php
/**
 * Created by PhpStorm.
 * User: apple
 * Date: 2020/12/15
 * Time: 下午11:49
 */

require_once './source/class/class_core.php';

$app=C::app();
define('DISCUZ_CORE_DEBUG', true);
$driver = 'db_driver_mysqli';
DB::init($driver, $app->config['db']);
loadcache(["setting"]);
//$cachedata = C::t('common_syscache')->fetch_all(["settting"]);

//var_dump($cachedata);
$query = DB::query('SELECT * FROM '.DB::table("common_syscache").' WHERE '.DB::field('cname', "setting"));
$syscache = DB::fetch($query);
var_dump($syscache);
$data=getglobal("setting/siteurl");
var_dump($data);
//var_dump($app->var['setting']);
echo  "end";